const uintc8 : Uint8ClampedArray = new Uint8ClampedArray (2);
uintc8 [0] = 42;
uintc8 [1] = 1337;
console.log (uintc8 [0]);
console.log (uintc8 [1]);
console.log (uintc8.length);
console.log (uintc8.BYTES_PER_ELEMENT);
const x : Uint8ClampedArray = new Uint8ClampedArray ([21, 31]);
console.log (x [1]);
const y : Uint8ClampedArray = new Uint8ClampedArray (x);
console.log (y [0]);
const buffer : ArrayBuffer = new ArrayBuffer (8);
const z : Uint8ClampedArray = new Uint8ClampedArray (buffer, 1, 4);
console.log (z.byteOffset);
